package cn.wolfcode.wolf2w.query;

import cn.wolfcode.wolf2w.domain.TravelComment;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQuery extends QueryObject{

    // 高级查询(根据不同的状态)
    private int state = 2;

    // 根据目的地查询
    private String destId;

    private int dayType = -1; // 旅游的出行时间

    private int OrderType = -1; // 用来区分按最热或最新进行查询

    private int perExpendType = -1; // 按人均消费查询

    // 进行映射转化
    public TravelCondition getDay(){
        return TravelCondition.DAY_MAP.get(dayType);
    }
    // 进行映射转化
    public TravelCondition getMoney(){
        return TravelCondition.MONEY_MAP.get(perExpendType);
    }

}
